class Jspang {
	public name:string
	public age : number
	public skill : string
	constructor(name:string,age:number,skill?:string){
		this.name = name
		this.age = age
	}
	public interest(){
		console.log('找小姐姐')
	}
}

var ass:Jspang = new Jspang('技术胖',18,'web')

ass.interest()


// class JsShuai extends Jspang {
// 	public xingxiang:string = '帅气'
// 	public zhuangQian(){
// 		console.log('一天赚了一个亿')
// 	}
// }

// let shuai = new JsShuai('技术帅',5,'演讲')
// shuai.interest()
// shuai.zhuangQian()
// console.log(shuai.xingxiang)

// class zj extends Jspang {
// 	public xinge : string = '丑陋'
// 	public Nomoney(){
// 		console.log('瓜皮')
// 	}
// }

// let benRen =  new zj('jser',24,'web')
// benRen.Nomoney()


// class guang extends  Jspang {
// 	public weige : string = '死胖子'
// 	public Nomoneys(){
// 		console.log('神仙车技')
// 	}
// }

// let webMan = new guang('技术',27)
// console.log(webMan.weige)
// webMan.interest()
// webMan.Nomoneys()


class son extends Jspang {
	public boast : string = '牛皮'
	public interest(){
		super.interest()
		console.log('建立电商平台')
	}
	public zhuangQian() {
		 console.log('一天赚了一个亿啊')
	}
}

let mySon = new son('jser的儿子',1)
mySon.interest()

// class JsShuai extends Jspang{
//     public xingxiang:string = '帅气'
//     public interest(){
// 		 console.log('建立电商平台')
//         super.interest()
//     }
//     public zhuangQian(){
//         console.log('一天赚了一个亿')
//     }
// }

// let shuai = new JsShuai('gupi',2,'s')
// shuai.interest()